package com.ncst.mvcweb.service;

import com.ncst.mvcweb.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    User findByUsernameAndPassword(String username, String password);

    List<User> findAll();

    void delete(Integer id);
    void delete(List<Integer> idList);
    User queryById(Integer id);
    User save(User user);

    User findByUsername(String username);

    void updateById(User user);
}
